package com.example.myblog01.dao;

import com.example.myblog01.pojo.Comment;
import org.springframework.data.domain.Sort;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface CommentServiceDao extends JpaRepository<Comment,Long> {

//根据id查询
    List<Comment> findByBlogId(Long blogId, Sort sort);




}
